<? require("simpauth.php") ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SimpAuth API Demo Sayfası</title>
</head>

<body>
<p>
  <?
$ikinci = new SimpAuth("c4ca4238a0b923820dcc509a6f75849b");

if ($ikinci->serveraktif())
{
if (isset($_REQUEST["user"]) && isset($_REQUEST["key"])) echo $ikinci->kontrolet($_REQUEST["user"], $_REQUEST["key"])->neden;
?>
</p>
<form id="form1" name="form1" method="post" action="">
  <p>
    <label for="user">Kullanıcı Kodu:</label>
    <input type="text" name="user" id="user" />
    <em>Örnek: 64624477735640767039620352890835</em>
  </p>
  <p>
    <label for="key">Tek Kullanımlık Şifre:</label>
    <input type="text" name="key" id="key" />
  </p>
  <p>
    <input type="submit" name="button" id="button" value="Gönder" />
  </p>
</form>
<?
}
else
{
?>
Doğrulama Sunucusu Kapalı Olduğu İçin Servis Dışı
<?
}
?>
<p>&nbsp;</p>
</body>
</html>